<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <link rel="stylesheet" href="__PUBLIC__/admin/css/bootstrapValidator/bootstrapValidator.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/contact-way-page/contact-way.css"/>

   <!-- <script src="__PUBLIC__/admin/js/ueditor/ueditor.config.js"></script>
    <script src="__PUBLIC__/admin/js/ueditor/ueditor.all.min.js"></script>-->

    <script type="text/javascript" src="__PUBLIC__/admin/js/bootstrapValidator/dist/js/bootstrapValidator.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/js/contact-way-page/contact.js"></script>

    <script type="text/javascript">
        $(document).ready(function(){
            var ue = UE.getEditor('editor-panel');

            $("input[type=file]").change(function(e){
                var fileInput = $(this)[0];
                var file = fileInput.files[0];
                if(file){
                    var reader = new FileReader();
                    reader.onload=function(e){
                        var $img = $(fileInput).parent().parent().find("img");
                        $img.attr("src",reader.result);
                    }
                    reader.readAsDataURL(file);
                }
            });


            $('#reset').click(function() {
                $('#form').data('bootstrapValidator').resetForm(true);
            });
        });
    </script>
</head>
<body>
<div id="body-wrapper">
    <div class="content">
        <div class="container">
            <div class="row title">
                <div class="col-md-15">
                    <h3 class="page-title">
                        <span class="glyphicon glyphicon-user"></span> 协会信息
                    </h3>
                </div>
            </div>
            <div class="row narrow-blank"></div>
            <div class="row">
                <div class="col-md-8">
                    <div class="contact-way-display">
                         <form id="form" enctype="multipart/form-data" class="row" role="form" method="post" action="{:U('Association/handle')}" >
                            <div class="row">
                                <div class="col-md-3"><label>协会名称：</label></div>
                                <div class="col-md-9"><p>{$res.name}</p></div>
                            </div>
                            <br>
                            <div class="row">
                                <div class="col-md-3"><label>协会介绍：</label></div>
                                <div class="col-md-9"><P><textarea class="form-control text_width" id="site_desc" name="function"rows="5"
                                          style="max-width: 100%;" >{$res.function}</textarea></P></div>
                            </div>
                            <br>
                            <div class="row">
                                <div class="col-md-3"><label>协会图标：</label></div>
                                <div class="col-md-9"><p><input id="icon_image_path" name="image" type="file"><img class="img-thumbnail" src="__ROOT__{$res.image_url}" id="img1"
                                  style="height:150px;width:150px;float:left;"></p></div>
                            </div>
                            <br>
                            <div class="row">
                                <div class="col-md-4">
                                    <button style="float: left;" type="submit" id="apply" class="btn btn-large btn-primary"><span class="glyphicon glyphicon glyphicon-save"></span> 保存</button>
                                </div>
                                <div class="col-md-4">
                                    <button style="float: left;"  type="button" id="reset" class="btn btn-large btn-primary"><span class="glyphicon glyphicon glyphicon-refresh"></span> 重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<!-- Download From www.exet.tk-->
</html>
